import request from "@/utils/request";

// 查询日期列表
export function dateInfoList(query) {
  return request({
    url: "/dateInfo/page",
    method: "get",
    params: query,
  });
}

// 新增日期
export function insertDate(data) {
  return request({
    url: "/dateInfo/insert",
    method: "post",
    data: data,
  });
}

// 查询日期详细
export function detailDate(id) {
  return request({
    url: "/dateInfo/detail/" + id,
    method: "get",
  });
}

// 修改日期
export function modifyDate(data) {
  return request({
    url: "/dateInfo/modify",
    method: "put",
    data: data,
  });
}

// 删除日期
export function delDate(id) {
  return request({
    url: "/dateInfo/del/" + id,
    method: "delete",
  });
}
